
<%@ page import="com.opeace.School" %>
<!doctype html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'school.label', default: 'School')}" />
		<title><g:message code="default.list.label" args="[entityName]" /></title>
	</head>
	<body>
		<a href="#list-school" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
		
			<h1><g:message code="default.list.label" args="[entityName]" /></h1>
                      
			<g:if test="${flash.message}">
			<div class="message" role="status">${flash.message}</div>
			</g:if>
			<table class = "table3" align="center">
				
					<tr>
					
						<g:sortableColumn property="address" title="${message(code: 'school.name.label', default: 'Name')}" />
					
						<g:sortableColumn property="contactName" title="${message(code: 'school.contactName.label', default: 'Contact Name')}" />
					
						<g:sortableColumn property="contactPosition" title="${message(code: 'school.contactPosition.label', default: 'Contact Position')}" />
					
						<g:sortableColumn property="description" title="${message(code: 'school.description.label', default: 'Description')}" />
					
						<g:sortableColumn property="name" title="${message(code: 'school.address.label', default: 'Address')}" />
					
						<g:sortableColumn property="phoneNumber" title="${message(code: 'school.phoneNumber.label', default: 'Phone Number')}" />
					
					</tr>
				
				<tbody>
				<g:each in="${schoolInstanceList}" status="i" var="schoolInstance">
					<tr class="${(i % 2) == 0 ? 'even' : 'odd'}">
					
						<td><g:link action="show" id="${schoolInstance.id}">${fieldValue(bean: schoolInstance, field: "name")}</g:link></td>
					
						<td>${fieldValue(bean: schoolInstance, field: "contactName")}</td>
					
						<td>${fieldValue(bean: schoolInstance, field: "contactPosition")}</td>
					
						<td>${fieldValue(bean: schoolInstance, field: "description")}</td>
					
						<td>${fieldValue(bean: schoolInstance, field: "address")}</td>
					
						<td>${fieldValue(bean: schoolInstance, field: "phoneNumber")}</td>
					
					</tr>
				</g:each>
				</tbody>
			</table>
                        <div class="nav" role="navigation">
			<ul>
				<li><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></li>
			</ul>
                      </div>
	</body>
</html>
